/*
 * KeyListener.cpp
 *
 *  Created on: 12-12-2010
 *      Author: Przemek
 */

#include "gui/KeyListener.hpp"

KeyListener::EventArguments::EventArguments(SDLKey key, char character, const Control* source) :
	Event(source), key(key), character(character)
{

}

KeyListener::EventArguments::EventArguments(const EventArguments& other) :
	Event(other), key(other.key), character(character)
{

}

KeyListener::EventArguments& KeyListener::EventArguments::operator=(const EventArguments& other)
{
	if(this != &other)
	{
		Event::operator=(other);
		key = other.key;
		character = other.character;
	}
	return *this;
}

SDLKey KeyListener::EventArguments::getKey() const
{
	return key;
}

void KeyListener::EventArguments::setKey(SDLKey key)
{
	this->key = key;
}

char KeyListener::EventArguments::getCharacter() const
{
	return character;
}

void KeyListener::EventArguments::setCharacter(char character)
{
	this->character = character;
}

void KeyListener::keyPressed(const EventArguments&)
{

}
